<!-- 提现确认弹窗 -->
<template>
	<view>
		<u-popup ref="popup" v-model="show" mode="center" border-radius="14" :mask-close-able="false">
			<view class="popup-wrap">
				<view class="title">提示</view>
				<view class="content">确认提现所有账单</view>
				<view class="btns u-f-jsb">
					<view @tap="btnEvent(0)">取消</view>
					<view @tap="btnEvent(1)">确认</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				show: false
			}
		},
		methods: {
			btnEvent(action) {
				this.show = false;
				if(action == 1) {
					// 确认
					this.$emit('confirm');
				}
			},
			open() {
				this.show = true;
			},
			close() {
				this.show = false;
			}
		}
	}
</script> 

<style lang="scss" scoped>
	.popup-wrap {
		width: 560rpx;
		height: 420rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		padding: 10rpx 20rpx;
		
		.title {
			font-size: 36rpx;
			font-weight: bold;
		}
		
		.content {
			font-size: 32rpx;
			color: rgba(52, 52, 52, 1);
		}
		
		.btns {
			width: 100%;
			>view {
				width: 250rpx;
				text-align: center;
			}
			>view:nth-child(1) {
				background-color: rgba(238, 238, 238, 1);
				border-radius: 16rpx;
				line-height: 90rpx;
			}
			>view:nth-child(2) {
				background-color: rgba(255, 206, 0, 1);
				border-radius: 16rpx;
				line-height: 90rpx;
				color: #FFFFFF;
			}
		}
	}
</style>
 